package com.lifesting.book.wci;

import java.util.HashMap;
import java.util.Map;

import org.antlr.runtime.Token;
import org.antlr.runtime.tree.CommonTree;
import org.antlr.runtime.tree.Tree;

import wci.intermediate.SymTabKey;

public class PascalNode extends CommonTree {
	
	private Map<SymTabKey, Object> properties = new HashMap<SymTabKey, Object>();
	public void setAttribute(SymTabKey key, Object value){
		properties.put(key, value);
	}
	public Object getAttribute(SymTabKey key){
		return properties.get(key);
	}
	public PascalNode() {
		super();
	}
	public PascalNode(CommonTree node) {
		super(node);
	}
	public PascalNode(Token t) {
		super(t);
	}
	@Override
	public Tree dupNode() {
		return new PascalNode(this);
	}
	
}
